package org.drools.examples.templates;  
  
import java.util.Iterator;  
import java.util.List;  
  
import org.drools.template.DataProvider; 
  
 
public class MyDataProvider implements DataProvider {  
  
    private Iterator<String[]> iterator;  
  
    public MyDataProvider(List<String[]> rows) {  
        this.iterator = rows.iterator();  
    }  
  
    public boolean hasNext() {  
        return iterator.hasNext();  
    }  
  
    public String[] next() {  
        return iterator.next();  
    }  
}  

